<template>
    <div>
        <table class="table table-bordered">
            <tbody>
                <tr>
                    <td>门店名称</td>
                    <td>优惠劵类型</td>
                    <td>使用时间</td>
                    <td>逻辑删除</td>
                    <td>操作</td>
                </tr>
                <tr v-for="item in data.list" :key="item.Id">
                    <td>{{ item.ShopName }}</td>
                    <td>{{ item.Discon }}</td>
                    <td>{{ item.UserTime }}</td>
                    <td>{{ item.Isdele }}</td>
                    <td>操作</td>
                </tr>
            </tbody>
        </table>
    </div>
</template>

<script setup lang="ts">
import {ref,reactive, onMounted}from 'vue';
import axios from 'axios';
import moment from 'moment';
import {useRouter,useRoute}from 'vue-router'
const router=useRouter();
const route=useRoute();

let data:any=reactive({
    list:[]
})

onMounted(()=>{
    getlist();
})

const getlist=()=>{
    axios({
        url:'/api/Dist/GetDismodel',
        method:'get'
    })
    .then(res=>{
        console.log(res);
        data.list=res.data;
    })
    .catch(err=>{
        console.log(err);
    })
}
</script>

<style scoped>

</style>